<?php defined('SYSPATH') or die();?>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>分销商中心-{$GLOBALS['cfg_webname']}</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    {Common::css('mobilebone.css')}
    {Common::css_plugin('base.css,fenxiao.css','fenxiao')}
    {Common::js('jquery.min.js,lib-flexible.js,mobilebone.js')}
    <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    {php echo Common::js('html2canvas.js');}
</head>
<body>

    <div class="page out" id="shareSellerHome" data-title="分销商中心">
        <div class="header_top">
            <a class="back-link-icon" href="javascript:;" onclick="javascript:history.go(-1);" data-ajax="false"></a>
            <h1 class="page-title-bar">分销商中心</h1>
        </div>
        <!-- 公用顶部 -->
        <div class="page-content">
            <div class="user-info-wrap">
                <ul class="info-item">
                    <li>
                        <img class="hd-img" src="{$member['litpic']}" />
                    </li>
                    <li>
                        <span class="name">{$member['nickname']}</span>
                    </li>
                    <li>
                        <a href="{$cmsurl}fenxiao/rank" class="level">{$fenxiao['fxrank_name']}</a>
                    </li>
                    <li>
                        <div class="count">
                            <span class="hd-all"><i class="icon"></i>收益累计</span>
                            <span class="pri">{Currency_Tool::symbol()}<em class="num">{$total_profit}</em></span>
                            <span class="js">(含待结算{Currency_Tool::symbol()}{$unfinish_profit})<span>
                        </div>
                    </li>
                </ul>
            </div>
            <!-- 分销商信息 -->
            <div class="user-console-wrap">
                <a class="item" href="{$cmsurl}fenxiao/product"><i class="icon tg-icon"></i>推广商品</a>
                <a class="item" href="{$cmsurl}fenxiao/invite"><i class="icon yq-icon"></i>邀请好友</a>
                <a class="item" href="{$cmsurl}fenxiao/invite_card" data-ajax="false"><i class="icon cd-icon"></i>邀请卡</a>
            </div>
            <!-- 邀请、推广 -->
            <div class="user-get-out">
                <span class="usable">可提现佣金<em class="num">&yen;{php echo number_format($member['money']-$member['money_frozen'],2,'.','');}</em></span>
                <a class="btn-link fr" href="{$cmsurl}member#&myWallet" data-ajax="false">立即提现</a>
            </div>
            <!-- 佣金提现 -->
            <div class="user-pile-result">
                <div class="result-list">
                    <a class="info" href="{$cmsurl}fenxiao/order">
                        <i class="icon dd-icon"></i>
                        <span class="item">推广订单</span>
                        <span class="item">{$order_num}</span>
                    </a>
                    <a class="info" href="{$cmsurl}fenxiao/subfx">
                        <i class="icon yq-icon"></i>
                        <span class="item">累计邀请</span>
                        <span class="item">{$fx_member_num}</span>
                    </a>
                    <a class="info" href="{$cmsurl}fenxiao/submember">
                        <i class="icon kh-icon"></i>
                        <span class="item">累计客户</span>
                        <span class="item">{$member_num}</span>
                    </a>
                </div>
            </div>
            <!-- 累计结果 -->
            <div class="user-item-list">
                <ul class="list-group">
                    <li>
                        <a class="item" href="{$cmsurl}fenxiao/jieshao/jieshao">
                            <span class="hd-txt">分销商介绍</span>
                            <i class="arrow-rig-icon"></i>
                        </a>
                    </li>
                </ul>
            </div>
            <!-- 列表 -->
        </div>
    </div>
    <script>
        Mobilebone.evalScript = true;
    </script>

</body>
</html>